/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.carrito.jdbc.dao;

import com.carrito.jsf.persistence.ArticuloClasificacion;
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;



/**
 *
 * @author oscarc
 */

public class ImplArticuloClasificacion extends HibernateDaoSupport implements IfaceArticuloClasificacion {

    @Override
    public void insertar(ArticuloClasificacion obj) {
        getHibernateTemplate().save(obj);
    }

    @Override
    public void eliminar(ArticuloClasificacion obj) {
        getHibernateTemplate().delete(obj);
    }

    @Override
    public void actualizar(ArticuloClasificacion obj) {
        getHibernateTemplate().merge(obj);
     }

    @Override
    public List<ArticuloClasificacion> consultar() {
        return getHibernateTemplate().find("FROM ArticuloClasificacion");

    }
}
